package com.sunwayhorizo.health.ets.base.persistent.pk;

import java.io.Serializable;

public class EtClssfctnDclrnsPK implements Serializable {
    public Long buildNum;
    public String classificationId;
    public String conceptId;

    public EtClssfctnDclrnsPK() {
    }

    public EtClssfctnDclrnsPK(Long buildNum, String classificationId, 
                              String conceptId) {
        this.buildNum = buildNum;
        this.classificationId = classificationId;
        this.conceptId = conceptId;
    }

    public boolean equals(Object other) {
        if (other instanceof EtClssfctnDclrnsPK) {
            final EtClssfctnDclrnsPK otherEtClssfctnDclrnsPK = (EtClssfctnDclrnsPK) other;
            final boolean areEqual = 
                (otherEtClssfctnDclrnsPK.buildNum.equals(buildNum) && otherEtClssfctnDclrnsPK.classificationId.equals(classificationId) && otherEtClssfctnDclrnsPK.conceptId.equals(conceptId));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
